package org.example.dao.impl;

import org.apache.ibatis.session.RowBounds;
import org.example.dao.IAuthUserDao;
import org.example.entity.AuthUserEntity;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthUserDaoImpl  implements IAuthUserDao {
    private static final String DAO = "org.example.mapper.AuthUser.";
    @Autowired
    private SqlSessionTemplate template;

    @Override
    public List<AuthUserEntity> selectAll(AuthUserEntity entity){
        return template.selectList(DAO+"selectList",entity,new RowBounds(1,1));
    }
}
